<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>PowerVR SDK</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<table width="100%">
  <tr>
    <td width="33%">
      <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
    </td>
    <td width="33%">
      <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
    </td>
    <td width="34%">
      <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
    </td>
  </tr>
</table>
<hr>
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>Texture.h</h1><a href="Texture_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
00002 <span class="comment"></span>
00003 <span class="comment"> @File         Texture.h</span>
00004 <span class="comment"></span>
00005 <span class="comment"> @Title        A class to hold runtime info about textures in order to shield the</span>
00006 <span class="comment"></span>
00007 <span class="comment"> @Version      </span>
00008 <span class="comment"></span>
00009 <span class="comment"> @Copyright    Copyright (C)  Imagination Technologies Limited.</span>
00010 <span class="comment"></span>
00011 <span class="comment"> @Platform     Independent - OGL/OGLES/OGLES2 Specific at the moment</span>
00012 <span class="comment"></span>
00013 <span class="comment"> @Description  A class for holding information about textures as they are loaded.</span>
00014 <span class="comment"></span>
00015 <span class="comment">******************************************************************************/</span>
00016 
00017 <span class="preprocessor">#ifndef TEXTURE_H</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define TEXTURE_H</span>
00019 <span class="preprocessor"></span>
00020 <span class="preprocessor">#include "PVRTools.h"</span>
00021 
00022 <span class="keyword">namespace </span>pvrengine
00023 {
00024     <span class="comment">/*!***************************************************************************</span>
00025 <span class="comment">    * @Class Texture</span>
00026 <span class="comment">    * @Brief    A class for holding information about textures as they are loaded.</span>
00027 <span class="comment">    * @Description  A class for holding information about textures as they are loaded.</span>
00028 <span class="comment">    *****************************************************************************/</span>
00029     <span class="keyword">class </span>Texture
00030     {
00031     <span class="keyword">public</span>:
00032         <span class="comment">/*!***************************************************************************</span>
00033 <span class="comment">        @Function           Texture</span>
<a name="l00034"></a><a class="code" href="classpvrengine_1_1Texture.html">00034</a> <span class="comment">        @Description        blank constructor</span>
00035 <span class="comment">        *****************************************************************************/</span>
00036         <a class="code" href="classpvrengine_1_1Texture.html#a0">Texture</a>(){}
00037 
00038         <span class="comment">/*!***************************************************************************</span>
00039 <span class="comment">        @Function           Texture</span>
00040 <span class="comment">        @Input              strFilename</span>
00041 <span class="comment">        @Description        Constructor from .pvr file using the PVRTools loading code</span>
<a name="l00042"></a><a class="code" href="classpvrengine_1_1Texture.html#a0">00042</a> <span class="comment">        *****************************************************************************/</span>
00043         <a class="code" href="classpvrengine_1_1Texture.html#a0">Texture</a>(<span class="keyword">const</span> CPVRTString&amp; strFilename);
00044 
00045         <span class="comment">/*!***************************************************************************</span>
00046 <span class="comment">        @Function           getHandle</span>
00047 <span class="comment">        @Description        accessor for OGL handle</span>
00048 <span class="comment">        *****************************************************************************/</span>
00049         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classpvrengine_1_1Texture.html#a2">getHandle</a>() {<span class="keywordflow">return</span> m_u32Handle;}
00050 
00051         <span class="comment">/*!***************************************************************************</span>
00052 <span class="comment">        @Function           getFilename</span>
00053 <span class="comment">        @Description        accessor for source texture file name</span>
00054 <span class="comment">        *****************************************************************************/</span>
00055         CPVRTString <a class="code" href="classpvrengine_1_1Texture.html#a3">getFilename</a>(){<span class="keywordflow">return</span> m_strFilename;}
00056 
<a name="l00057"></a><a class="code" href="classpvrengine_1_1Texture.html#a2">00057</a>         <span class="comment">/*!***************************************************************************</span>
00058 <span class="comment">        @Function           isCubeMap</span>
00059 <span class="comment">        @Return             true for cube map</span>
00060 <span class="comment">        @Description        Function to query whether this is a cube map texture</span>
00061 <span class="comment">        *****************************************************************************/</span>
00062         <span class="keywordtype">bool</span>    <a class="code" href="classpvrengine_1_1Texture.html#a4">isCubeMap</a>() {<span class="keywordflow">return</span> m_bIsCubeMap;}
00063 
<a name="l00064"></a><a class="code" href="classpvrengine_1_1Texture.html#a3">00064</a>     <span class="keyword">private</span>:
00065         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_u32Handle;       
00066         CPVRTString m_strFilename;      
00067         <span class="keywordtype">bool</span> m_bIsCubeMap;              
00068     };
00069 }
00070 <span class="preprocessor">#endif // TEXTURE_H</span>
00071 <span class="preprocessor"></span>
<a name="l00072"></a><a class="code" href="classpvrengine_1_1Texture.html#a4">00072</a> <span class="comment">/******************************************************************************</span>
00073 <span class="comment">End of file (TextureBase.h)</span>
00074 <span class="comment">******************************************************************************/</span>
00075 
</pre></div><br>
<br>
<P align=left><FONT size=2><STRONG><A 
   href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> � 
   1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
<hr>
<address style="align: left;"><small><FONT color=f0f>
Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
</body>
</html>
